//
//  QuDanCompleteMoneyViewCell.m
//  QuDanOEM
//
//  Created by mac on 2021/11/15.
//

#import "QuDanCompleteMoneyViewCell.h"

@implementation QuDanCompleteMoneyViewCell

- (void)awakeFromNib {
    [super awakeFromNib];
    self.bgView.layer.cornerRadius = 20.0f;
    self.bgView.layer.masksToBounds = YES;
}
/// cut btn
/// @param sender cut btn
- (IBAction)actionCutBtn:(UIButton *)sender
{
    NSLog(@"cut btn");
    NSInteger currentNumber = [self.centerPriceLab.text intValue];
    if (currentNumber <= 0) {
        [SVProgressHUD showInfoWithStatus:@"金额不能为0"];
        return;
    }
    currentNumber--;
    self.centerPriceLab.text = [NSString stringWithFormat:@"%ld",(long)currentNumber];
}
/// add btn
/// @param sender add btn
- (IBAction)actionAddBtn:(UIButton *)sender
{
    NSLog(@"add btn");
    NSInteger currentNumber = [self.centerPriceLab.text intValue];
    currentNumber++;
    NSLog(@"currentNumber:%ld",(long)currentNumber);
    self.centerPriceLab.text = [NSString stringWithFormat:@"%ld",(long)currentNumber];
}
@end
